//package com.ll.springai;
//
//import java.util.HashMap;
//import java.util.Map;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.ai.openai.OpenAiChatClient;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@Slf4j
//@RestController
//public class ZxxOpenAiController {
//
//    private final OpenAiChatClient chatClient;
//
//    @Autowired
//    public ZxxOpenAiController(OpenAiChatClient chatClient) {
//        this.chatClient = chatClient;
//    }
//
//    @GetMapping("/ai/call")
//    public Map<String, String> call(String message) {
//        log.info("start method 【call】 param: message=【{}】", message);
//        String msg = chatClient.call(message);
//        Map<String, String> result = new HashMap<>();
//        result.put("msg", msg);
//        return result;
//    }
//}
//
